import request from '@/utils/request'

// 获取设备树
export function getDeviceTree(params) {
  return request({
    url: '/business/mqtt/device/getDeviceTree',
    method: 'get',
    params
  })
}
// 获取直播流地址
export function getDeviceVideoUrl(params) {
  return request({
    url: '/business/mqtt/device/getDeviceFlvUrl',
    method: 'get',
    params
  })
}
// 视频监控--历史回放--返回有视频链接的日期
export function getDateOfExistenceOfMedia(params) {
  return request({
    url: '/business/mqtt/device/getDateOfExistenceOfMedia',
    method: 'get',
    params
  })
}
// 视频监控--历史回放--根据日期获取当天的视频链接
export function getDeviceHistoryFlvUrl(params) {
  return request({
    url: '/business/mqtt/device/getDeviceHistoryFlvUrl',
    method: 'get',
    params
  })
}
